Skip to content

Commit b1855f2

Browse files
author
Kazuki Suzuki Przyborowski
committed
Update pycatfile.py
1 parent c2bdbba commit b1855f2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

pycatfile.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,10 @@ def get_default_threads():
250250
if('PYCATFILE_CONFIG_FILE' in os.environ and os.path.exists(os.environ['PYCATFILE_CONFIG_FILE']) and __use_env_file__):
251251
scriptconf = os.environ['PYCATFILE_CONFIG_FILE']
252252
else:
253-
scriptconf = os.path.join(os.path.dirname(get_importing_script_path()), "catfile.ini")
253+
try:
254+
scriptconf = os.path.join(os.path.dirname(get_importing_script_path()), "catfile.ini")
255+
except TypeError:
256+
scriptconf = None
254257
if os.path.exists(scriptconf):
255258
__config_file__ = scriptconf
256259
else:

0 commit comments

Comments
 (0)