Skip to content

Commit

Permalink
[update] add more details for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
NatLee committed Nov 21, 2023
1 parent 2579a7e commit c94ddfb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/heic2png/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "1.1.3"
__version__ = "1.1.4"

from .heic2png import *
from .cli import main
9 changes: 8 additions & 1 deletion src/heic2png/cli.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import traceback
import argparse
from pillow_heif import register_heif_opener

Expand Down Expand Up @@ -44,10 +45,16 @@ def cli(args):
except ValueError as e:
print('Error: Invalid input or output format.')
print(e)
traceback.print_exc()

except Exception as e:
print(f'An unexpected error occurred: {e}')
print('Please report this issue with details of the error.')
print('Here are the details:')
print('==========================')
traceback.print_exc()
print('==========================')
print('Please report this issue with the full traceback.')
print('-> https://github.com/NatLee/HEIC2PNG/issues')

def main():
"""
Expand Down

0 comments on commit c94ddfb

Please sign in to comment.