Skip to content

Commit

Permalink
refactored debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
SilenZcience committed Feb 19, 2024
1 parent 6242c78 commit 4181b67
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cat_win/cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -1210,12 +1210,9 @@ def main():
err_print('Cleaning', tmp_file)
try:
os.remove(tmp_file)
except FileNotFoundError:
except (FileNotFoundError, PermissionError, OSError) as e:
if holder.args_id[ARGS_DEBUG]:
err_print('FileNotFoundError', tmp_file)
except PermissionError:
if holder.args_id[ARGS_DEBUG]:
err_print('PermissionError ', tmp_file)
err_print(type(e).__name__, tmp_file)
if holder.args_id[ARGS_DEBUG]:
err_print('===================================================' + \
'====================================================')
Expand Down

0 comments on commit 4181b67

Please sign in to comment.