Skip to content

Commit

Permalink
Merge pull request #985 from OCR-D/fix-917
Browse files Browse the repository at this point in the history
processor.module: fix namespace pkg case
  • Loading branch information
kba authored Feb 17, 2023
2 parents e304385 + 4a11abb commit 0a351ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocrd/ocrd/processor/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def module(self):
if fqname:
fqname += '.'
fqname += name
if sys.modules[fqname].__file__:
if getattr(sys.modules[fqname], '__file__', None):
return fqname
# fall-back
return self.__module__
Expand Down

0 comments on commit 0a351ae

Please sign in to comment.