diff options
author | Ankit Dobhal <dobhal.ankit@protonmail.com> | 2021-03-22 20:48:13 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-22 11:18:13 -0400 |
commit | d66f9070cd0f826e5b6630f8e1f6ed5837a3c3cb (patch) | |
tree | c9b922f44e1ff234f7b053b049cd94d5fce1f79c /scripts | |
parent | Merge branch 'master' into develop (diff) | |
download | synapse-d66f9070cd0f826e5b6630f8e1f6ed5837a3c3cb.tar.xz |
Fixed code misc. quality issues (#9649)
- Merge 'isinstance' calls. - Remove unnecessary dict call outside of comprehension. - Use 'sys.exit()' calls.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/move_remote_media_to_new_store.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/move_remote_media_to_new_store.py b/scripts/move_remote_media_to_new_store.py index ab2e763386..8477955a90 100755 --- a/scripts/move_remote_media_to_new_store.py +++ b/scripts/move_remote_media_to_new_store.py @@ -51,7 +51,7 @@ def main(src_repo, dest_repo): parts = line.split("|") if len(parts) != 2: print("Unable to parse input line %s" % line, file=sys.stderr) - exit(1) + sys.exit(1) move_media(parts[0], parts[1], src_paths, dest_paths) |