Skip to content

Commit

Permalink
Refactor: defensive programming
Browse files Browse the repository at this point in the history
  • Loading branch information
peter88213 committed Sep 29, 2024
1 parent 581dfe8 commit d1fc37e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/nvlib/exporter/nv_doc_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def run(self, source, suffix, **kwargs):
defaultButton = 0
except:
timeStatus = ''
defaultButton = 0
self._targetFileDate = datetime.fromtimestamp(targetTimestamp).strftime('%c')
title = _('Export document')
message = _('{0} already exists.\n(last saved on {2})\n{1}.\n\nOpen this document instead of overwriting it?').format(
Expand Down

0 comments on commit d1fc37e

Please sign in to comment.