Skip to content

Commit

Permalink
Do not compare types, use isinstance()
Browse files Browse the repository at this point in the history
  • Loading branch information
Yi-FanLi authored Dec 14, 2023
1 parent 37d811b commit 0192fd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dpti/lib/RemoteJob.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def _default_item(resources, key, value):


def _set_default_resource(res):
if res == None:
if res is None:
res = {}
_default_item(res, "numb_node", 1)
_default_item(res, "task_per_node", 1)
Expand Down

0 comments on commit 0192fd9

Please sign in to comment.