Skip to content

Commit

Permalink
Fixed Error Handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Cmacle committed Apr 7, 2022
1 parent aa7182c commit 31f3f4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion steg.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def encode(image_path: str,
output_image(new_im_data, image_mode, image_size, output_path)
update_state("Done")

except None as err:
except Exception as err:
target = 0
exception_type, exception_object, exception_traceback = sys.exc_info()
filename = exception_traceback.tb_frame.f_code.co_filename
Expand Down

0 comments on commit 31f3f4b

Please sign in to comment.